const requireComponent = import.meta.globEager(
  "/src/components/global/src/*.vue"
);
const install = (Vue) => {
  for (let key in requireComponent) {
    Vue.component(
      requireComponent[key].default.name,
      requireComponent[key].default
    );
  }
};

if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
}

export const componentsInt = install;
